import org.springframework.jms.core.support.JmsGatewaySupport;
import org.springframework.transaction.annotation.Transactional;

public class BackOfficeImpl extends JmsGatewaySupport implements BackOffice {
	
	@Override
	@Transactional 
	public Mail receiveMail() {
		return (Mail)getJmsTemplate().receiveAndConvert();
	}

}
